package com.xqboss.apps.mapper.sys;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xqboss.apps.domain.sys.SysAnnouncementMsg;
import com.xqboss.apps.dto.system.SysAnnouncementMsgDto;
import com.xqboss.apps.vo.sys.SysAnnouncementMsgVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 公告消息表Mapper
 *
 * @author wangcong
 * @date 2023-08-31
 */
public interface SysAnnouncementMsgMapper extends BaseMapper<SysAnnouncementMsg> {
    List<SysAnnouncementMsgVo> findByList(SysAnnouncementMsgDto dto);


    //0未读 1已读
    Integer isRead(@Param("categoryId") Long categoryId,@Param("userId") Long userId);
}
